import { createRouter, createWebHashHistory } from 'vue-router'

const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/home',
      name: 'home',
      component:()=>import('@/views/home.vue')
    },
    {
      path: '/edit/:id',
      name: 'edit',
      component:()=>import('@/views/edit.vue')
    },
    {
      path: '/show/:id',
      name: 'show',
      component:()=>import('@/views/show.vue')
    },
    {
      path: '/',
      name: 'login',
      component:()=>import('@/views/login.vue')
    },
  ]
})

export default router
